# 定义一个带有成员方法的类
class Student:
    name = None     # 学生姓名

    def say_hi(self):
        print(f"大家好呀！我是{self.name}, 欢迎大家, 多多关照呀")

    def say_hi2(self, msg):
        print(f"大家好, 我是：{self.name}, {msg}")


stu = Student()
stu.name = "曹纪云"
stu.say_hi()
stu.say_hi2("不错呦")


stu2 = Student()
stu2.name = "邵明铭"
stu2.say_hi()
stu2.say_hi2("加油")
